<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<%-- <%@taglib uri="spring.tld" prefix="spring"%> --%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>修改密码</title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="keywords" content="">
    <link rel="shortcut icon" href="<%=basePath%>resources/images/favicon.ico" />
    <link href="resources/bootstrap/css/bootstrap-huan.css" rel="stylesheet">
    <link href="resources/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="resources/css/style.css" rel="stylesheet">

    <link href="resources/css/exam.css" rel="stylesheet">
    <link href="resources/chart/morris.css" rel="stylesheet">
    <style type="text/css">
        #div-confirm-pwd,#div-new-pwd {
            display: none;
        }
    </style>
</head>
<body>
<jsp:include page="../header.jsp"/>

<!-- Slider starts -->

<div>
    <!-- Slider (Flex Slider) -->

    <div class="container" style="min-height:500px;">

        <div class="row">
            <div class="col-xs-2">
                <ul class="nav default-sidenav">
                    <li class="active">
                        <a> <i class="fa fa-wrench"></i> 邮箱验证 </a>
                    </li>
                    <li>
                        <a> <i class="fa fa-wrench"></i> 修改密码 </a>
                    </li>
                </ul>
            </div>
            <div class="col-xs-10">
                <div class="page-header">
                    <h1><i class="fa fa-wrench"></i> 修改密码 </h1>
                </div>
                <div class="page-content row">
                    <form class="form-horizontal" id="form-update-pwd" action="validate-mail-code/" style="margin-top:40px;" method="post">
                        <!-- 邮箱地址 -->
                        <div class="form-group form-mail">
                            <label class="control-label col-md-2" for="mail">邮&nbsp;&nbsp;箱</label>
                            <div class="col-md-5">
                                <input type="text" class="form-control" id="mail"maxlength="60" >
                                <span class="form-message"></span>
                            </div>
                        </div>
                        <!-- 验证码 -->
                        <div class="form-group form-code">
                            <label class="control-label col-md-2" for="validate_code">验证码</label>
                            <div class="col-md-4" style="width: 20%;">
                                <input type="text"  class="form-control" name="validate_code" id="validate_code" maxlength="10" >
                                <span class="form-message"></span>
                            </div>
                            <button type="button" class="btn btn-info" id="mail_code_btn">获取验证码</button>
                        </div>
                        <!-- 新密码 -->
                        <div class="form-group form-password" id="div-new-pwd">
                            <label class="control-label col-md-2" for="new-pwd">新密码</label>
                            <div class="col-md-5">
                                <input type="password" class="form-control" id="new-pwd" maxlength="20">
                                <span class="form-message"></span>
                            </div>
                        </div>
                        <!-- 确认密码 -->
                        <div class="form-group form-confirm-password" id="div-confirm-pwd">
                            <label class="control-label col-md-2" for="confirm-pwd">确认密码</label>
                            <div class="col-md-5">
                                <input type="password" class="form-control" id="confirm-pwd" maxlength="20">
                                <span class="form-message"></span>
                            </div>
                        </div>

                        <!-- Buttons -->
                        <div class="form-group">
                            <!-- Buttons -->
                            <div class="col-md-5 col-md-offset-2">
                                <button type="button" class="btn btn-info" id="btn-validate" disabled="true">
                                    确&nbsp;认
                                </button>
                            </div>
                            <div class="col-md-5 col-md-pull-1">
                                <button type="reset" class="btn btn-info" id="btn-reset">
                                    重&nbsp;置
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</div>

<jsp:include page="../footer.jsp"/>

<!-- Slider Ends -->

<!-- Javascript files -->
<!-- jQuery -->
<script type="text/javascript" src="resources/js/jquery/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="resources/js/all.js"></script>
<!-- Bootstrap JS -->
<script type="text/javascript" src="resources/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="resources/chart/raphael-min.js"></script>
<script type="text/javascript" src="resources/chart/morris.js"></script>
<script type="text/javascript" src="resources/js/update-pwd-by-mail.js"></script>
</body>
</html>